package cn.tedu.imop.basic.controller;

import cn.tedu.imop.api.domain.OperationLog;
import cn.tedu.imop.api.model.RestResult;
import cn.tedu.imop.api.model.RestResultUtils;
import cn.tedu.imop.common.constants.Constants;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@Api(tags="操作日志")
@RestController
@RequestMapping(Constants.CONTROLLER_API_VERSION+"/operation/log")
public class OperationLogController {

       //private OperationLogService operationLogService;
       @PostMapping
       public RestResult<Void> createOperationLog(@RequestBody OperationLog operationLog)
       {
           log.info("OperationLogController operation log is {}",operationLog);
           return RestResultUtils.success();
       }
}
